#!/usr/bin/gnuplot

# Para executar, no terminal digite:
# gnuplot random_tests_table_in_6.plt

#References:
# http://www.gnuplotting.org/
# http://people.duke.edu/~hpgavin/save.plt
# http://gnuplot.sourceforge.net/docs_4.2/node410.html

# Exibe o grafico na tela

set title "Tempo de execução para diferentes métodos   (Conectividade aleatoria K = 3..6)"
set xlabel "Número de Genes (N)"
set ylabel "Tempo de Execução (s)"

plot "./random_tests_table_in_6.txt" u 1:7 smooth unique w linespoints title 'Serial', "./random_tests_table_in_6.txt" u 1:3 smooth unique w linespoints title 'Graph GPU Based', "./random_tests_table_in_6.txt" u 1:5  smooth unique w linespoints title 'Parallel GPU Based', "./random_tests_table_in_6.txt" u 1:8  smooth unique w linespoints title 'SAT Based'
pause -1

# Imprime a imagem em um arquivo PNG

#reset
#clear
set terminal png small font arial 
set output './random_tests_table_in_6.png'
#set title "Tempo de execução para diferentes métodos"
#set xlabel "Número de Genes (N)"
#set ylabel "Tempo de Execução (s)"

plot "./random_tests_table_in_6.txt" u 1:7 smooth unique w linespoints title 'Serial', "./random_tests_table_in_6.txt" u 1:3 smooth unique w linespoints title 'Graph GPU Based', "./random_tests_table_in_6.txt" u 1:5  smooth unique w linespoints title 'Parallel GPU Based', "./random_tests_table_in_6.txt" u 1:8  smooth unique w linespoints title 'SAT Based'

